﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SMTC.Dao.AddEmployee;
using SMTC.Model.TestCore;
namespace SMTC.BO.AddEmployee
{
 public  class AddEmployeeServices
    {
        private AddEmployeeDao _addemploydao=new AddEmployeeDao ();
        /// <summary>
        /// 验证用户是否存在-name，psw
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <param name="passWord">密码</param>
        /// <returns>如果存在返回true，否则返回false</returns>
        public void InsertEmployee(string  EMPNbr, string Name, string Mtel, string Tel, string Fax, string EMail, int DeptID, string Post, string other)
        {
            _addemploydao.InsertEmployee( EMPNbr,  Name, Mtel, Tel, Fax, EMail, DeptID, Post, other);
        }
        public List<EmpInfo> AdduserGridAddEmployeeGridViewBind()
        {
            return _addemploydao.AdduserGridAddEmployeeGridViewBind();
        }
    }
}
